<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
    <title>创建2D地图</title>

    <style>
        html,
        body,
        #viewDiv {
            padding: 0;
            margin: 0;
            height: 100%;
            width: 100%;
        }
    </style>

    <!-- ArcGIS API for JavaScript本地部署地址 -->
    <link rel="stylesheet" href="http://localhost/arcgis_js_v416_sdk/arcgis_js_api/library/4.16/esri/css/main.css" />
    <!-- <script src="http://localhost/arcgis_js_v416_sdk/arcgis_js_api/library/4.16/dojo/dojo.js"></script> -->


    <!-- <script src="http://localhost/arcgis_js_v416_sdk/arcgis_js_api/library/4.16/init.js"></script> -->
    <script src="file:///C:/inetpub/wwwroot/arcgis_js_v416_sdk/arcgis_js_api/library/4.16/init.js"></script>


    <!-- jquery-2.0.3.min.js是jquery-2.0.3.js的编译版本 -->
    <!-- jQuery 库是一个 JavaScript 文件,下面在线引用它。
    <script src="https://code.jquery.com/jquery-2.0.3.min.js"></script> -->

    <!-- <link rel="stylesheet" href="https://js.arcgis.com/4.16/esri/themes/light/main.css" /> -->
    <!-- <script src="https://js.arcgis.com/4.16/"></script> -->

    <script>
        require(["esri/Map", "esri/views/MapView"], function(Map, MapView) {
            //创建一个地图Map实例
            var map = new Map({
                basemap: "streets"
                    //属性：allLayers、ground、layers
            });
            //创建一个MapView实例（用于2D查看）并引用该地图实例
            //为了使地图在DOM中对用户可见，必须创建一个MapView并至少引用两个对象：一个Map实例和一个DOM元素。分别在map和container属性中设置。
            var view = new MapView({
                container: "viewDiv",
                map: map,
                //zoom: 4,
                //center: [55, 65] // longitude, latitude
            });
        });
    </script>
</head>

<body>
    <div id="viewDiv"></div>
</body>

</html>

<!-- http://192.168.1.176/GTKJYJ/BJGKDETAIL.html?pid=3&tpno=03 -->